package com.test;

import java.io.File;
import java.net.URISyntaxException;

public class Path {
	public static void main(String[] args) throws URISyntaxException {
//		String separator = System.getProperty("file.separator");
//    	StringBuilder sb = new StringBuilder(System.getProperty("java.class.path"));
//    	sb.append(separator).append("timgs").append(separator);
//    	File f = new File(sb.toString());
//    	
//    	System.out.println(f); 
//    	if(!f.exists()){
//    		f.mkdirs();
//    	}
//    	System.out.println(sb.toString());
//    	new Path().t();
		
		int t = 11;
		int pageSize = 10;
		
//		System.out.println(t/pageSize);
//		
//		System.out.println(t%pageSize);
//		
		int totalPage =t%pageSize==0?t/pageSize:t/pageSize+1;
		System.out.println(totalPage);
		
	}

	public void t() throws URISyntaxException{
		File f = new File(this.getClass().getResource("").getPath()); 
		String path=new File(getClass().getClassLoader().getResource("").toURI()).getPath();
		System.out.println(path); 
	}
	
	
}
